package yf.mall.dysdk.model;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

/**
 * @author yxmds
 */
@Data
public class DyToken {

    @JSONField(name = "access_token")
    private String accessToken;

    @JSONField(name = "captcha")
    private String captcha;

    @JSONField(name = "desc_url")
    private String descUrl;

    @JSONField(name = "description")
    private String description;

    @JSONField(name = "error_code")
    private Integer errorCode;

    @JSONField(name = "expires_in")
    private Integer expiresIn;

    @JSONField(name = "log_id")
    private String logId;

    @JSONField(name = "open_id")
    private String openId;

    @JSONField(name = "refresh_expires_in")
    private Integer refreshExpiresIn;

    @JSONField(name = "refresh_token")
    private String refreshToken;

    @JSONField(name = "scope")
    private String scope;

    /**
     * 失效时间，用于缓存判断，自己代码添加的，毫秒级时间戳
     */
    private Long expiresAt;
}
